package com.campus.secondhand.common.constant;

/**
 * 消息队列常量
 */
public class MqConstants {

    /**
     * 交换机
     */
    public static final String CAMPUS_EXCHANGE = "campus.topic";

    /**
     * 商品相关队列
     */
    public static final String PRODUCT_INSERT_QUEUE = "product.insert.queue";
    public static final String PRODUCT_UPDATE_QUEUE = "product.update.queue";
    public static final String PRODUCT_DELETE_QUEUE = "product.delete.queue";

    /**
     * 用户相关队列
     */
    public static final String USER_INSERT_QUEUE = "user.insert.queue";
    public static final String USER_UPDATE_QUEUE = "user.update.queue";
    public static final String USER_DELETE_QUEUE = "user.delete.queue";

    /**
     * 学校相关队列
     */
    public static final String SCHOOL_INSERT_QUEUE = "school.insert.queue";
    public static final String SCHOOL_UPDATE_QUEUE = "school.update.queue";
    public static final String SCHOOL_DELETE_QUEUE = "school.delete.queue";

    /**
     * 消息相关队列
     */
    public static final String MESSAGE_SEND_QUEUE = "message.send.queue";
    public static final String MESSAGE_READ_QUEUE = "message.read.queue";

    /**
     * 订单相关队列
     */
    public static final String ORDER_CREATE_QUEUE = "order.create.queue";
    public static final String ORDER_PAY_QUEUE = "order.pay.queue";
    public static final String ORDER_CANCEL_QUEUE = "order.cancel.queue";
    public static final String ORDER_CONFIRM_QUEUE = "order.confirm.queue";

    /**
     * 路由键
     */
    public static final String PRODUCT_INSERT_KEY = "product.insert";
    public static final String PRODUCT_UPDATE_KEY = "product.update";
    public static final String PRODUCT_DELETE_KEY = "product.delete";

    public static final String USER_INSERT_KEY = "user.insert";
    public static final String USER_UPDATE_KEY = "user.update";
    public static final String USER_DELETE_KEY = "user.delete";

    public static final String SCHOOL_INSERT_KEY = "school.insert";
    public static final String SCHOOL_UPDATE_KEY = "school.update";
    public static final String SCHOOL_DELETE_KEY = "school.delete";

    public static final String MESSAGE_SEND_KEY = "message.send";
    public static final String MESSAGE_READ_KEY = "message.read";

    public static final String ORDER_CREATE_KEY = "order.create";
    public static final String ORDER_PAY_KEY = "order.pay";
    public static final String ORDER_CANCEL_KEY = "order.cancel";
    public static final String ORDER_CONFIRM_KEY = "order.confirm";

    /**
     * 搜索相关常量
     */
    public static final String ES_SYNC_PRODUCT_QUEUE = "es.sync.product.queue";
    public static final String ES_SYNC_USER_QUEUE = "es.sync.user.queue";
    public static final String ES_SYNC_SCHOOL_QUEUE = "es.sync.school.queue";

    public static final String ES_SYNC_PRODUCT_KEY = "es.sync.product";
    public static final String ES_SYNC_USER_KEY = "es.sync.user";
    public static final String ES_SYNC_SCHOOL_KEY = "es.sync.school";
}